package org.lemon.transport.coap.server.service;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.lemon.transport.context.service.TransportDeviceProfileCache;
import org.lemon.transport.coap.adapter.JsonCoapAdaptor;
import org.lemon.transport.coap.adapter.ProtoCoapAdaptor;
import org.lemon.transport.context.ota.OtaPackageDataCache;
import org.lemon.transport.context.service.TransportContext;
import org.lemon.transport.context.service.TransportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Data
@Component
@EqualsAndHashCode(callSuper = true)
public class CoapTransportContext extends TransportContext {

    @Autowired
    protected TransportService transportService;

    @Autowired
    protected TransportDeviceProfileCache transportDeviceProfileCache;

    @Autowired
    protected OtaPackageDataCache otaPackageDataCache;

    @Autowired
    protected JsonCoapAdaptor jsonCoapAdaptor;

    @Autowired
    protected ProtoCoapAdaptor protoCoapAdaptor;

}
